# $Id: PKGBUILD 142522 2011-11-11 11:01:09Z ibiru $
# Maintainer: Ionut Biru <ibiru@archlinux.org>

pkgname=papyon
pkgver=0.5.6
pkgrel=1
pkgdesc="papyon is the library behind the msn connection manager: telepathy-butterfly."
arch=('any')
url="http://www.freedesktop.org/wiki/Software/papyon"
license=("GPL")
depends=('python2-gobject2' 'python2-pyopenssl' 'pycrypto')
source=(http://www.freedesktop.org/software/${pkgname}/releases/${pkgname}-${pkgver}.tar.gz)
md5sums=('7b9a723e5ba6ee82a9c391676144ad29')

package(){
  cd "${srcdir}/${pkgname}-${pkgver}"
  python2 setup.py install --root="${pkgdir}" --optimize=1
  sed -i "s|env python|env python2|" "${pkgdir}/usr/lib/python2.7/site-packages/papyon/msnp2p/test.py"
}
